.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: clamp(0.7rem, 1.8vw, 1rem) clamp(0.9rem, 2.6vw, 1.75rem);
  min-height: var(--header-height);
  background: rgba(14, 11, 12, 0.8);
  backdrop-filter: blur(14px);
  color: var(--fg);
  transition: height .35s var(--ease), padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: none;
  border-bottom: 1px solid rgba(246, 239, 234, 0.08);
}

.site-header.is-scrolled {
  height: var(--header-height);
  padding: clamp(0.55rem, 1.5vw, 0.9rem) clamp(1rem, 3vw, 1.5rem);
  background: rgba(14, 11, 12, 0.95);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: inherit;
  text-decoration: none;
}

.brand img {
  height: clamp(46px, 6.2vw, var(--brand-max-height));
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.brand-title {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-tagline {
  font-size: .74rem;
  color: var(--muted);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.desk-nav {
  display: none;
}

.desk-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  align-items: center;
}

.desk-nav a {
  padding-bottom: .35rem;
  opacity: .95;
  border-bottom: 2px solid transparent;
}

.desk-nav a:hover,
.desk-nav a:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(213, 160, 0, 0.68);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: 0 1.4rem;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff !important;
  border: 1px solid rgba(246, 239, 234, 0.22);
  border-bottom: none !important;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.drawer {
  position: fixed;
  inset: var(--header-offset, var(--header-expanded-height)) auto 0 0;
  width: min(88vw, 360px);
  background: #130f10;
  border-right: 1px solid var(--border-subtle);
  border-left: none;
  height: max-content;
  transform: translateX(-100%);
  transition: transform .28s var(--ease);
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-medium);
  z-index: var(--z-drawer);
}

@media (max-width: 540px) {
  .drawer {
    width: 100vw;
    border-right: none;
    border-left: none;
  }
}

.drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.drawer li {
  border-bottom: 1px solid rgba(246, 239, 234, 0.12);
  padding-bottom: .65rem;
}

.drawer li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.drawer a {
  display: block;
  padding: .2rem 0;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(1px);
  z-index: var(--z-scrim);
}

.site-header[data-open] .drawer {
  transform: translateX(0);
}

.site-header[data-open] .scrim,
.site-header[data-open] ~ #navScrim {
  display: block;
}

.site-header:not([data-open]) .scrim,
#navScrim[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: clamp(2rem, 5vw, 4rem);
  }

  .site-header:not(.is-scrolled) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    gap: clamp(0.85rem, 2.4vw, 1.45rem);
    min-height: var(--header-expanded-height);
    padding-block: clamp(1.35rem, 4vw, 2.2rem);
  }

  .site-header:not(.is-scrolled) .brand img {
    height: clamp(62px, 7vw, var(--brand-max-height));
  }

  .desk-nav {
    display: flex;
    justify-self: center;
  }

  .menu-btn,
  .drawer,
  .scrim {
    display: none !important;
  }
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(1.3rem, 4vw, 2.1rem);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.section_background {
  background: linear-gradient(180deg, rgba(112, 9, 0, 0.22), rgba(14, 11, 12, 0.9));
}

body.home-page .section_background {
  background: transparent;
}

.section-gray {
  background: var(--surface-alt);
}

.footer-grid {
  display: grid;
  gap: clamp(1.2rem, 4vw, 2rem);
  grid-template-areas:
    "brand"
    "socials"
    "credit";
  justify-items: center;
}

.footer-brand,
.footer-socials,
.footer-credit {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: .95rem;
  opacity: .9;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-socials {
  flex-direction: row;
  gap: 1rem;
}

.footer-social {
  display: inline-flex;
  width: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(213, 160, 0, 0.16);
  border: 1px solid rgba(213, 160, 0, 0.48);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.footer-social:hover {
  transform: translateY(-2px);
}
